#include<bits/stdc++.h>

using namespace std;
void print(int*a, int n)
{
    for(int i = 0; i < n; i++)
    {
        cout << a[i] << " ";
    }
    cout << endl;
}

int main()
{
    int a[] = {1, 3, 5, 7, 9, 2, 4, 6, 8, 0};
    int n = sizeof(a) / sizeof(a[0]);
    sort(a+5, a+n);
    print(a, n);
    return 0;
}
